import Ax from './api';

export default {
  seriesAdd: (param = {}) => Ax.put(`/series/add`, param),
  seriesEdit: (param = {}) => Ax.put(`/series/edit`, param),
  seriesDelete: (query = {}) => Ax.delete(`/series/delete?_id=${query._id}`),
  seriesList: (param = {}) => Ax.post(`/series/list`, param),
  seriesAll: (param = {}) => Ax.post(`/series/all`, param),
  seriesByManufacturer: (query = {}) => Ax.get(`/series/byManufacturer?deviceType=${query.deviceType}&manufacturer=${query.manufacturer}`),
  seriesDetail: (query = {}) => Ax.get(`/series/detail?_id=${query._id}`),
  seriesManufacturer: (query = {}) => Ax.get(`/series/all?manufacturer=${query.id}`),
};
